package com.gun.management.module.raffle.controller.admin.lottery.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.gun.management.module.raffle.controller.admin.lotteryrule.vo.LotteryRuleSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 抽奖信息新增/修改 Request VO")
@Data
public class LotterySaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14991")
    private Long id;

    @Schema(description = "抽奖名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "抽奖名称不能为空")
    private String name;

    @Schema(description = "抽奖类型", example = "1")
    @NotNull(message = "抽奖类型不能为空")
    private Long categoryId;

    @Schema(description = "每人抽奖总次数")
    @NotNull(message = "每人抽奖总次数不能为空")
    private Integer totalTimes;

    @Schema(description = "每人每天抽奖次数")
    @NotNull(message = "每人每天抽奖次数不能为空")
    private Integer dayTotalTimes;

    @Schema(description = "单次抽奖消耗积分")
    @NotNull(message = "单次抽奖消耗积分不能为空")
    private Integer expenseScore;

    @Schema(description = "限制添加奖品数量，否则不能保存")
    @NotNull(message = "限制添加奖品数量不能为空")
    private Integer maxPrizeCount;


    @Schema(description = "抽奖活动背景图片",   example = "http://*****.com/bg.png")
    @NotNull(message = "抽奖活动背景图片不能为空")
    private String bgPicture;

    @Schema(description = "状态",  example = "2")
    private Integer status;

    @Schema(description = "活动过期时间",   example = "2024-10-09 15:00:00")
    private LocalDateTime expiredTime;

    @Schema(description = "活动详情",   example = "2024-10-01国庆节深圳市南山区庆典")
    private String content;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    private List<LotteryRuleSaveReqVO>  ruleList;

}